* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #EFEFEF;
    overflow-y: scroll;
    padding-bottom: 300px;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    position: relative;
    transition: 1s all;
    margin: 60px auto 0;
    max-width: 940px;
}

section h1 {
    font-size: 2em;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

.navBar {
    position: fixed;
    top: 0;
    /* left:0; */
    width: 100%;
    color: #FFFFFF;
    z-index: 1;
}

.navBar.fixed {
    color: #3d4451;
    box-shadow: 0 5px 5px -2px rgba(0, 0, 0, 0.5);
}

.navBar .navBarInner {
    padding: 20px 42px;
    padding-right: 150px;
    transition: all 0.2s;
}

.navBar.fixed .navBarInner {
    background-color: #FFFFFF;
    padding-top: 5px;
    padding-bottom: 5px;
}

.logo {
    font-size: 28px;
    font-variant: none;
    font-weight: 900;
    color: #9A9DA2;
    float: left;
    line-height: 50px;
}

.logo a {
    color: inherit;
}

.logo .RS {
    color: #e6686a;
    margin-right: 4px;
}

ul.navList {
    float: right;
    list-style: none;
    color: inherit;
    font-weight: bold;
    margin: 0;
    padding-top: 6px;
}

ul.navList .navItem {
    width: auto;
    float: left;
    position: relative;
    margin-left: 30px;
    font-size: 13px;
    line-height: 37px;
    overflow: visible;
}

ul.navList .navItem a {
    color: inherit;
    padding: 10px 0;
    position: relative;
}

ul.navList .navItem > a::after {
    content: ' ';
    display: block;
    bottom: 10%;
    height: 3px;
    width: 0;
    background: #F77;
    position: absolute;
    transition: all 0.2s;
}

ul.navList .navItem.active > a::after {
    width: 100%;
}

ul.navList .navItem:hover > a::after {
    width: 100%;
}

ul.navList .navItem .navMenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 30%;

    list-style: none;
    word-break: keep-all;
    background: #FFF;
    color: #3d4451;
    box-shadow: 0 0 30px -5px rgba(0, 0, 0, 0.5);
}

ul.navList .navItem:hover .navMenu {
    display: block;
    animation: navMenuFadein linear 0.2s forwards;
}

ul.navList .navItem .navMenu li {
    padding: 7px 15px;
    display: inline-block;
}

@keyframes navMenuFadein {
    0% {
        right: 30%;
        opacity: 0;
    }
    100% {
        right: 0;
        opacity: 1;
    }
}

ul .navMenu li {
    float: left;
    clear: both;
    font-size: 1em;
    line-height: 100%;
}

.clearFix::after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

.topBanner {
    height: 515px;
    background-size: cover;
    background: url(../img/topBanner.jpg) center center;
}

.topBanner .cover {
    /* position: absolute; */
    width: 100%;
    height: 515px;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
}

.info {
    margin-top: -340px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.4);
}

.info .infoCard {
    padding: 50px;
    background-color: #FFF;
}

.infoCard .picture {
    float: left;
    margin-right: 65px;
}

.infoCard .profile {
    float: left;
    width: 470px;
}

.infoCard .profile .welcome {
    display: inline-block;
    background-color: #E86767;
    color: #FFF;
    padding: 4px 12px;
    font-weight: bold;
    position: relative;
    overflow: visible;
    font-size: 14px;
    line-height: 22px;
}

.infoCard .profile .welcome::after {
    content: ' ';
    display: block;
    border: 4px solid transparent;
    border-top-color: #E86767;
    border-left-color: #E86767;
    position: absolute;
    top: 100%;
    left: 5px;
}

.infoCard .profile h1 {
    margin-top: 28px;
    /* line-height: 42px; */
}

.infoCard .profile hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #DEDEDE;
}

.infoCard .profile dl dt {
    width: 30%;
    font-weight: bold;
    float: left;
    padding: 5px 0;
}

.infoCard .profile dl dd {
    width: 70%;
    color: #9da0a7;
    float: left;
    padding: 5px 0;
}

.info .infoFooter {
    background-color: #E86767;
    text-align: center;
}

.info .infoFooter a {
    display: inline-block;
    margin: 16px;
    width: 40px;
    line-height: 30px;
    padding: 5px 0;
    border-radius: 50%;
}

.info .infoFooter a:hover {
    background-color: #CF5D5F;
}

.info .infoFooter .icon {
    width: 30px;
    height: 30px;
    fill: white;
    vertical-align: top;
}

.downloadResume {
    text-align: center;
    margin-top: 32px;
}

.downloadResume a {
    display: inline-block;
    padding: 21px 55px;
    border: 1px solid #cbcdcf;
    font-weight: bold;
    line-height: 16px;
    font-size: 14px;
    color: #3d4451;
    transition: box-shadow 0.3s;
}

.downloadResume a:hover {
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.25);
}

.selfIntroduction {
    text-align: center;
    line-height: 1.8;
    font-size: 18px;
    margin-top: 30px;
}

.skill {
    text-align: center;
    color: #3d4451;
}

.skill h1 {
    font-size: 34px;
    line-height: 1.2;
}

.skillList {
    margin-top: 30px;
    list-style: none;
    padding: 42px 50px 10px;
    background: #FFF;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.4);
}

.skillList li {
    width: 48%;
    float: left;
    margin-bottom: 32px;
}

.skillList li:nth-child(even) {
    float: right;
}

.skillList li .skillName {
    text-align: left;
    font-size: 14px;
    line-height: 1.1;
}

.skillList li .percentBar {
    background: #FAE1E1;
    border-color: #FAE1E1;
}

.percentBar {
    border: 3px solid transparent;
    border-radius: 3px;
    margin: 4px auto;
    position: relative;
    overflow: visible;
}

.percentBar::before {
    content: ' ';
    height: 0;
    width: 50%;
    border: 3px solid #E6686A;
    position: absolute;
    left: -3px;
    top: -3px;
    border-radius: 3px;
    transition: 1s all;
}

.percentBar.percent20::before {
    width: 20%;
}

.percentBar.percent40::before {
    width: 40%;
}

.percentBar.percent60::before {
    width: 60%;
}

.percentBar.percent80::before {
    width: 80%;
}

.hidden .skillList .percentBar::before {
    width: 0;
}

.portfolio {
    color: #3d4451;
    text-align: center;
}

.portfolio h1 {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 600;
}

.portfolioNav {
    list-style: none;
    display: inline-block;
    margin-top: 32px;
}

.portfolioNav li {
    display: inline-block;
    margin: 0 20px;
    cursor: pointer;
}

.portfolioNav .switchBar {
    margin: 10px 20px 0;
    border: 3px solid #FFF;
    border-radius: 3px;
    position: relative;
    overflow: visible;
}

.portfolioNav hr.switchBar::before {
    content: ' ';
    height: 0;
    border: 3px solid #E6686A;
    border-radius: 3px;
    position: absolute;
    top: -3px;
    transition: all 0.3s;
}

.portfolioNav hr.portfolio1::before {
    left: -3px;
    width: 26px;
}

.portfolioNav hr.portfolio2::before {
    left: 74px;
    width: 57px;
}

.portfolioNav hr.portfolio3::before {
    left: 183px;
    width: 24px;
}

.portfolio .works {
    height: 600px;
    position: relative;
    margin-top: 30px;
}

.portfolio .works img {
    position: absolute;
}

.portfolio .works .works01 {
    left: 0;
    top: 0;
}

.portfolio .works .works02 {
    left: 645px;
    top: 0;
}

.portfolio .works .works03 {
    left: 645px;
    top: 312px;
}

section.hidden {
    opacity: 0;
    transform: translateY(50px);
}

form#addComments {
    margin: 20px auto 0;
    width: 70%;
}

form#addComments input {
    display: block;
    float: left;
    margin-top: 20px;
    font-size: 1.25em;
}

form#addComments input[type=submit] {
    float: right;
    border: none;
    padding-left: 10px;
    padding-right: 10px;
    color: #FFF;
    background: #496fe4;
}

form#addComments textarea[name=content] {
    width: 100%;
    margin-top: 10px;
    display: block;
}

form#addComments .commentContent {
    position: relative;
    overflow: visible;
}

form#addComments input, textarea {
    outline: none;
    border-radius: 5px;
    font-size: 1em;
    line-height: 1.5em;
    padding: 5px;
    resize: none;
    font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
    border: 1px solid #777;
}

/*form#addComments input:focus,*/
/*form#addComments textarea:focus{*/
    /*border-color:#2d89ef;*/
/*}*/


form#addComments .commentContent::before,
form#addComments .commentContent::after {
    content: " ";
    display: block;
    position: absolute;
    bottom: -9px;
    left: 3.5em;
    width: 0;
    height: 0;
    background: transparent;
    border-width: 10px 10px 0 10px;
    border-color: #FFF transparent transparent transparent;
    border-style: solid;
}

form#addComments .commentContent::before {
    bottom: -10px;
    border-color: #777 transparent transparent transparent;
}


#comment ul.commentList {
    width: 70%;
    margin: 20px auto;
    list-style: none;
    text-align: left;
    border-top: 1px solid #777;
}

#comment ul.commentList li{
    padding: 10px 30px;
    border-bottom: 1px solid #777;
}